package com.shankungfu.bean;

import java.util.List;

public class ProjectDetailDataBean {

	private String project_Id;
	private String project_title;
	private PIProjectTimeBean project_time;
	private String project_services_time;
	private PIProjectAddress project_address;
	private String project_area;
	private String project_leader;
	private List<String> project_skill;
	private List<String> project_group;
	private String people_number;
	private String join_number;
	private String Introduction;
	private String comment_number;
	private ProjectImgUrlBean project_img_url;

	public String getProject_Id() {
		return project_Id;
	}

	public void setProject_Id(String project_Id) {
		this.project_Id = project_Id;
	}

	public String getProject_title() {
		return project_title;
	}

	public void setProject_title(String project_title) {
		this.project_title = project_title;
	}

	public PIProjectTimeBean getProject_time() {
		return project_time;
	}

	public void setProject_time(PIProjectTimeBean project_time) {
		this.project_time = project_time;
	}

	public String getProject_services_time() {
		return project_services_time;
	}

	public void setProject_services_time(String project_services_time) {
		this.project_services_time = project_services_time;
	}

	public String getProject_address() {
		return project_address.toString();
	}

	public void setProject_address(PIProjectAddress project_address) {
		this.project_address = project_address;
	}

	public String getProject_area() {
		return project_area;
	}

	public void setProject_area(String project_area) {
		this.project_area = project_area;
	}

	public String getProject_leader() {
		return project_leader;
	}

	public void setProject_leader(String project_leader) {
		this.project_leader = project_leader;
	}

	public String getProject_skill() {
		String skills = "";
		if (project_skill == null || project_skill.size() <= 0) {
			return skills;
		} else if (project_skill.size() < 3) {
			for (String str : project_skill) {
				skills += str + ", ";
			}
			// 这里-2是因为上面每次str+的,号后面都有一个空格
			skills = skills.substring(0, skills.length() - 2);
		} else {
			for (int i = 0; i <= 2; i++) {
				skills += project_skill.get(i) + ", ";
			}
			skills = skills.substring(0, skills.length() - 2);
			skills += "...";
		}
		return skills;
	}

	public void setProject_skill(List<String> project_skill) {
		this.project_skill = project_skill;
	}

	public String getProject_group() {
		String groups = "";
		if (project_group == null || project_group.size() <= 0) {
			return groups;
		} else if (project_group.size() < 3) {
			for (String str : project_group) {
				groups += str + ", ";
			}
			// 这里-2是因为上面每次str+的,号后面都有一个空格
			groups = groups.substring(0, groups.length() - 2);
		} else {
			for (int i = 0; i <= 2; i++) {
				groups += project_group.get(i) + ", ";
			}
			groups = groups.substring(0, groups.length() - 2);
			groups += "...";
		}
		return groups;
	}

	public void setProject_group(List<String> project_group) {
		this.project_group = project_group;
	}

	public String getPeople_number() {
		return people_number;
	}

	public void setPeople_number(String people_number) {
		this.people_number = people_number;
	}

	public String getJoin_number() {
		return join_number;
	}

	public void setJoin_number(String join_number) {
		this.join_number = join_number;
	}

	public String getIntroduction() {
		return Introduction;
	}

	public void setIntroduction(String introduction) {
		Introduction = introduction;
	}

	public String getComment_number() {
		return comment_number;
	}

	public void setComment_number(String comment_number) {
		this.comment_number = comment_number;
	}

	public ProjectImgUrlBean getProject_img_url() {
		return project_img_url;
	}

	public void setProject_img_url(ProjectImgUrlBean project_img_url) {
		this.project_img_url = project_img_url;
	}

}
